package org.ice4apps.talk.registrar;

/**
 * @author  biju
 *
 */
public class BadRegistrationException extends Exception {
	private int status;
	private String reason;
	
	public BadRegistrationException(int status) {
		this(status, null);
	}
	
	public BadRegistrationException(int status, String reason) {
		super(status + (reason == null ? "" : " " + reason));
		this.status = status;
		this.reason = reason;
	}

	public int getStatus() {
		return status;
	}
	
	public String getReason() {
		return reason;
	}
}
